package com.bw.hadoop;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.RPC;
import java.io.IOException;
import java.net.InetSocketAddress;

/**
 * 客户端
 */
public class DFSClient {
    public static void main(String[] args) throws IOException {
        ClientProtocol namenode = RPC.getProxy(ClientProtocol.class, 555L, new InetSocketAddress("localhost",9999),
                new Configuration());
        namenode.putData("data size");
    }
}